/////////////////////////////////////////////////////////////////////////
//                  Copyright (c) 2011 BidRealm, LLC                   //
//                                                                     //
//                        All Rights Reserved                          //
//                                                                     //
//             LICENSED MATERIAL - PROPERTY OF BidRealm                //
// Possession and/or use of this material is subject to the provisions //
//           of a written license agreement with BidRealm              //
//                                                                     //
/////////////////////////////////////////////////////////////////////////
package com.trackrealm.tracker.content;

import android.location.Location;

/**
 * This class extends the standard Android location with extra information.
 *
 * @author Sandor Dornbush
 */
public class TrackerLocation extends Location {

  private Sensor.SensorDataSet sensorDataSet = null;

  /**
   * The id of this location from the provider.
   */
  private int id = -1;

  public TrackerLocation(Location location, Sensor.SensorDataSet sd) {
    super(location);
    this.sensorDataSet = sd;
  }

  public TrackerLocation(String provider) {
    super(provider);
  }

  public Sensor.SensorDataSet getSensorDataSet() {
    return sensorDataSet;
  }

  public void setSensorData(Sensor.SensorDataSet sensorData) {
    this.sensorDataSet = sensorData;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }
  
  public void reset() {
    super.reset();
    sensorDataSet = null;
    id = -1;
  }
}
